package com.itbooking.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itbooking.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Service
@FeignClient(value="USER")
public interface UserService {

    @RequestMapping("/list")
    public List<User> findUsers();

    @RequestMapping("/page")
    public Page<User> queryUsers();

}
